/**   
 * @Title: MyVO.java 
 * @Package com.dragon.learn.web.vo 
 * @Description: TODO(用一句话描述该文件做什么) 
 * @author dragon   
 * @date 2018年8月22日 上午10:44:38 
 * @version V1.0   
 */
package com.dragon.learn.web.vo;

import java.util.ArrayList;
import java.util.List;

/** 
 * @ClassName: MyVO 
 * @Description: TODO(这里用一句话描述这个类的作用) 
 * @author dragon
 * @date 2018年8月22日 上午10:44:38 
 *  
 */
public class MyVO {

	private String name;
	private String sex;
	private String age;
	private String addr;
	private String email;
	private String phone;
	private String birthday;

	public MyVO() {
	}
	
	public MyVO(String name, String sex, String age, String addr, String email, String phone, String birthday) {
		super();
		this.name = name;
		this.sex = sex;
		this.age = age;
		this.addr = addr;
		this.email = email;
		this.phone = phone;
		this.birthday = birthday;
	}



	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the sex
	 */
	public String getSex() {
		return sex;
	}

	/**
	 * @param sex the sex to set
	 */
	public void setSex(String sex) {
		this.sex = sex;
	}

	/**
	 * @return the age
	 */
	public String getAge() {
		return age;
	}

	/**
	 * @param age the age to set
	 */
	public void setAge(String age) {
		this.age = age;
	}

	/**
	 * @return the addr
	 */
	public String getAddr() {
		return addr;
	}

	/**
	 * @param addr the addr to set
	 */
	public void setAddr(String addr) {
		this.addr = addr;
	}

	/**
	 * @return the email
	 */
	public String getEmail() {
		return email;
	}

	/**
	 * @param email the email to set
	 */
	public void setEmail(String email) {
		this.email = email;
	}

	/**
	 * @return the phone
	 */
	public String getPhone() {
		return phone;
	}

	/**
	 * @param phone the phone to set
	 */
	public void setPhone(String phone) {
		this.phone = phone;
	}

	/**
	 * @return the birthday
	 */
	public String getBirthday() {
		return birthday;
	}

	/**
	 * @param birthday the birthday to set
	 */
	public void setBirthday(String birthday) {
		this.birthday = birthday;
	}
	
	public MyVO init() {
		return new MyVO("姓名", "男", "18", "北京", "123@QQ.com", "110", "20001212");
	}
	
	public List<MyVO> inits() {
		List<MyVO> vos = new ArrayList<>();
		
		for (int i = 0; i < 100; i++) {
			vos.add(new MyVO("姓名"+i, "男", "18", "北京", i+"123@QQ.com", "110"+i, "20001212"));
		}
		return vos;
	}
}
